#include <iostream>

using namespace std;

template <class Type> Type Abs(Type a);

template <class Type> Type Abs(Type a) {
    if (a < 0)
        return -a;
    else
        return a;
}

int main() {
    cout << Abs(-1.0) << Abs(2) << Abs(-5) << endl;
    return 0;
}
